package com.pn.mapper;

import com.pn.entity.User;
import org.springframework.stereotype.Component;

@Component(value = "userMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User user);

    int insertSelective(User user);

    User getByPrimaryKey(Integer uid);

    User getByPhone(String phone);

    int updateByPrimaryKeySelective(User user);

    int updateByPrimaryKey(User user);

    int updateByPhoneSelective(User user);
}